

import type { Iuserextract } from './entity';
import type { IPageParams } from '@/types/table'
import request from '@/api/request'

export function getPageList(params: IPageParams) {
  return request({
    url: `admin/finance/apply/list`,
    method: 'get',
    params,
    loading: true
  })
}

export function userextractDel(data) {
  return request({
    url: `admin/finance/apply/delete`,
    method: 'post',
    data
  })
}
export function userextractinfo(id) {
  return request({
    url: `admin/finance/apply/info/${id}`,
    method: 'get'
  })
}
export function userextractSelect(id) {
  return request({
    url: `admin/finance/apply/select`,
    method: 'get'
  })
}

export function userextractAddup(data) {
  return request({
    url: `admin/finance/apply/${!data.id ? 'save' : 'update'}`,
    method: 'post',
    data
  })
}
